﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="../assets/css/yui-cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="shortcut icon" type="image/x-icon" href="../assets/favicon.ico">
    <script src="../assets/js/yui-source.js"></script>
	<title>EaselJS v1.0.0 API Documentation : BitmapText</title>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
            
                <h1><a href="http://createjs.site/easeljs"><img src="../assets/docs-icon-EaselJS.png" title="EaselJS"></a></h1>
            
        </div>
        <div class="version">
            <em>API Documentation for: 1.0.0</em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
    <h2 class="off-left">APIs</h2>
    <div id="api-tabview" class="tabview">
        <ul class="tabs">
            <li><a href="#api-classes">Classes</a></li>
        </ul>

        <div id="api-tabview-filter">
            <input type="search" id="api-filter" placeholder="Type to filter APIs">
        </div>

        <div id="api-tabview-panel">
            <ul id="api-classes" class="apis classes">
            
                <li><a href="AlphaMapFilter.html">AlphaMapFilter</a></li>
            
                <li><a href="AlphaMaskFilter.html">AlphaMaskFilter</a></li>
            
                <li><a href="Bitmap.html">Bitmap</a></li>
            
                <li><a href="BitmapCache.html">BitmapCache</a></li>
            
                <li><a href="BitmapText.html">BitmapText</a></li>
            
                <li><a href="BlurFilter.html">BlurFilter</a></li>
            
                <li><a href="ButtonHelper.html">ButtonHelper</a></li>
            
                <li><a href="ColorFilter.html">ColorFilter</a></li>
            
                <li><a href="ColorMatrix.html">ColorMatrix</a></li>
            
                <li><a href="ColorMatrixFilter.html">ColorMatrixFilter</a></li>
            
                <li><a href="Container.html">Container</a></li>
            
                <li><a href="DisplayObject.html">DisplayObject</a></li>
            
                <li><a href="DisplayProps.html">DisplayProps</a></li>
            
                <li><a href="DOMElement.html">DOMElement</a></li>
            
                <li><a href="EaselJS.html">EaselJS</a></li>
            
                <li><a href="Event.html">Event</a></li>
            
                <li><a href="EventDispatcher.html">EventDispatcher</a></li>
            
                <li><a href="Filter.html">Filter</a></li>
            
                <li><a href="Graphics.html">Graphics</a></li>
            
                <li><a href="Graphics.Arc.html">Graphics.Arc</a></li>
            
                <li><a href="Graphics.ArcTo.html">Graphics.ArcTo</a></li>
            
                <li><a href="Graphics.BeginPath.html">Graphics.BeginPath</a></li>
            
                <li><a href="Graphics.BezierCurveTo.html">Graphics.BezierCurveTo</a></li>
            
                <li><a href="Graphics.Circle.html">Graphics.Circle</a></li>
            
                <li><a href="Graphics.ClosePath.html">Graphics.ClosePath</a></li>
            
                <li><a href="Graphics.Ellipse.html">Graphics.Ellipse</a></li>
            
                <li><a href="Graphics.Fill.html">Graphics.Fill</a></li>
            
                <li><a href="Graphics.LineTo.html">Graphics.LineTo</a></li>
            
                <li><a href="Graphics.MoveTo.html">Graphics.MoveTo</a></li>
            
                <li><a href="Graphics.PolyStar.html">Graphics.PolyStar</a></li>
            
                <li><a href="Graphics.QuadraticCurveTo.html">Graphics.QuadraticCurveTo</a></li>
            
                <li><a href="Graphics.Rect.html">Graphics.Rect</a></li>
            
                <li><a href="Graphics.RoundRect.html">Graphics.RoundRect</a></li>
            
                <li><a href="Graphics.Stroke.html">Graphics.Stroke</a></li>
            
                <li><a href="Graphics.StrokeDash.html">Graphics.StrokeDash</a></li>
            
                <li><a href="Graphics.StrokeStyle.html">Graphics.StrokeStyle</a></li>
            
                <li><a href="Matrix2D.html">Matrix2D</a></li>
            
                <li><a href="MouseEvent.html">MouseEvent</a></li>
            
                <li><a href="MovieClip.html">MovieClip</a></li>
            
                <li><a href="MovieClipPlugin.html">MovieClipPlugin</a></li>
            
                <li><a href="Point.html">Point</a></li>
            
                <li><a href="Rectangle.html">Rectangle</a></li>
            
                <li><a href="Shadow.html">Shadow</a></li>
            
                <li><a href="Shape.html">Shape</a></li>
            
                <li><a href="Sprite.html">Sprite</a></li>
            
                <li><a href="SpriteSheet.html">SpriteSheet</a></li>
            
                <li><a href="SpriteSheetBuilder.html">SpriteSheetBuilder</a></li>
            
                <li><a href="SpriteSheetUtils.html">SpriteSheetUtils</a></li>
            
                <li><a href="Stage.html">Stage</a></li>
            
                <li><a href="StageGL.html">StageGL</a></li>
            
                <li><a href="Text.html">Text</a></li>
            
                <li><a href="Ticker.html">Ticker</a></li>
            
                <li><a href="Touch.html">Touch</a></li>
            
                <li><a href="UID.html">UID</a></li>
            
                <li><a href="Utility%20Methods.html">Utility Methods</a></li>
            
                <li><a href="VideoBuffer.html">VideoBuffer</a></li>
            
                <li><a href="WebGLInspector.html">WebGLInspector</a></li>
            
            </ul>

            <ul id="api-modules" class="apis modules">
            
                <li><a href="../modules/CreateJS.html">CreateJS</a></li>
            
                <li><a href="../modules/EaselJS.html">EaselJS</a></li>
            
            </ul>
        </div>
    </div>
</div>

            </div>
        </div>
        <div class="yui3-u-3-4">
            <div id="api-options">
        Show:
        <label for="api-show-inherited">
            <input type="checkbox" id="api-show-inherited" checked="">
            Inherited
        </label>

        <label for="api-show-protected">
            <input type="checkbox" id="api-show-protected">
            Protected
        </label>

        <label for="api-show-private">
            <input type="checkbox" id="api-show-private">
            Private
        </label>
        <label for="api-show-deprecated">
            <input type="checkbox" id="api-show-deprecated">
            Deprecated
        </label>

    </div>
            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
                        <h1>BitmapText Class</h1>
<div class="box meta">
    

    
        <div class="extends">
            Extends <a href="DisplayObject.html" class="crosslink">DisplayObject</a>
        </div>
    

    
        <div class="foundat">
            Defined in: <a href="../files/easeljs_display_BitmapText.js.html#l36"><code>BitmapText:36</code></a>
        </div>
    

    
        
            Module: <a href="../modules/EaselJS.html">EaselJS</a>
        
    

    
</div>



<div class="box intro">
    <p>使用sprite sheet中定义的位图图示符显示文本。支持使用换行字符的多行文本，但不支持自动换行。有关定义图示符的详细信息，请参见 <a href="BitmapText.html#property_spriteSheet" class="crosslink">spriteSheet</a> 属性。</p>
<p><strong>重要提示：</strong> 虽然BitmapText扩展了Container，但它并不是设计为一个容器。因此，addChild和removeChild等方法被禁用。</p>

</div>


    <div class="constructor">
        <h2>Constructor</h2>
        <div id="method_BitmapText" class="method item">
    <h3 class="name"><code>BitmapText</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code class="optional">[text=&quot;&quot;]</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code class="optional">[spriteSheet=null]</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l36"><code>BitmapText:36</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name optional">[text=&quot;&quot;]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>要显示的文本。</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name optional">[spriteSheet=null]</code>
                        <span class="type"><a href="SpriteSheet.html" class="crosslink">SpriteSheet</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>定义字符图示符的精灵表。</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

    </div>


<div id="classdocs" class="tabview">
    <ul class="api-class-tabs">
        <li class="api-class-tab index"><a href="#index">Index</a></li>

        
            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
        
        
            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
        
        
        
            <li class="api-class-tab events"><a href="#events">Events</a></li>
        
    </ul>

    <div>
        <div id="index" class="api-class-tabpanel index">
            <h2 class="off-left">Item Index</h2>
                <div class="index-section methods">
                    <h3>Methods</h3>
                    <ul class="index-list methods extends">
                            <li class="index-item method protected inherited">
                                <a href="#method__applyShadow">_applyShadow</a>
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__cloneProps">_cloneProps</a>
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__dispatchEvent">_dispatchEvent</a>
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__getBounds">_getBounds</a>
                            </li>
                        
                            <li class="index-item method protected">
                                <a href="#method__getFrame">_getFrame</a>
                            </li>
                        
                            <li class="index-item method protected">
                                <a href="#method__getFrameIndex">_getFrameIndex</a>
                            </li>
                        
                            <li class="index-item method protected">
                                <a href="#method__getLineHeight">_getLineHeight</a>
                            </li>
                        
                            <li class="index-item method protected">
                                <a href="#method__getSpaceWidth">_getSpaceWidth</a>
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__getStage">_getStage</a>
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__isMouseOpaque">_isMouseOpaque</a>
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__testHit">_testHit</a>
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__tick">_tick</a>
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__transformBounds">_transformBounds</a>
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__updateState">_updateState</a>
                            </li>
                        
                            <li class="index-item method protected">
                                <a href="#method__updateText">_updateText</a>
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_addChild">addChild</a>
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_addChildAt">addChildAt</a>
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_addEventListener">addEventListener</a>
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_cache">cache</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_clone">clone</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_dispatchEvent">dispatchEvent</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_draw">draw</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_getBounds">getBounds</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_getCacheDataURL">getCacheDataURL</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_getConcatenatedDisplayProps">getConcatenatedDisplayProps</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_getConcatenatedMatrix">getConcatenatedMatrix</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_getMatrix">getMatrix</a>

                                
                                
                            </li>
                        
                            <li class="index-item method deprecated inherited">
                                <a href="#method_getStage">getStage</a>

                                
                                
                                    <span class="flag deprecated">deprecated</span>
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_getTransformedBounds">getTransformedBounds</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_globalToLocal">globalToLocal</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_hasEventListener">hasEventListener</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_hitTest">hitTest</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_isVisible">isVisible</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_localToGlobal">localToGlobal</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_localToLocal">localToLocal</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_off">off</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_on">on</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_removeAllChildren">removeAllChildren</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_removeAllEventListeners">removeAllEventListeners</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_removeChild">removeChild</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_removeChildAt">removeChildAt</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_removeEventListener">removeEventListener</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_set">set</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_setBounds">setBounds</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_setTransform">setTransform</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited inherited">
                                <a href="#method_toString">toString</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_uncache">uncache</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_updateCache">updateCache</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_updateContext">updateContext</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_willTrigger">willTrigger</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            
                <div class="index-section properties">
                    <h3>Properties</h3>

                    <ul class="index-list properties extends">
                        
                            <li class="index-item property protected inherited">
                                <a href="#property__bounds">_bounds</a>

                                
                                
                            </li>
                        
                            <li class="index-item property protected deprecated inherited">
                                <a href="#property__cacheDataURL">_cacheDataURL</a>

                                
                                
                                    <span class="flag deprecated">deprecated</span>
                                
                            </li>
                        
                            <li class="index-item property protected deprecated inherited">
                                <a href="#property__cacheDataURLID">_cacheDataURLID</a>

                                
                                
                                    <span class="flag deprecated">deprecated</span>
                                
                            </li>
                        
                            <li class="index-item property protected deprecated inherited">
                                <a href="#property__cacheScale">_cacheScale</a>

                                
                                
                                    <span class="flag deprecated">deprecated</span>
                                
                            </li>
                        
                            <li class="index-item property protected inherited">
                                <a href="#property__captureListeners">_captureListeners</a>

                                
                                
                            </li>
                        
                            <li class="index-item property protected">
                                <a href="#property__drawAction">_drawAction</a>

                                
                                
                            </li>
                        
                            <li class="index-item property protected inherited">
                                <a href="#property__listeners">_listeners</a>

                                
                                
                            </li>
                        
                            <li class="index-item property protected">
                                <a href="#property__oldProps">_oldProps</a>

                                
                                
                            </li>
                        
                            <li class="index-item property protected">
                                <a href="#property__oldStage">_oldStage</a>

                                
                                
                            </li>
                        
                            <li class="index-item property protected inherited">
                                <a href="#property__props">_props</a>

                                
                                
                            </li>
                        
                            <li class="index-item property protected inherited">
                                <a href="#property__rectangle">_rectangle</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__spritePool">_spritePool</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item property protected inherited">
                                <a href="#property__webGLRenderStyle">_webGLRenderStyle</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_alpha">alpha</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_bitmapCache">bitmapCache</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_cacheCanvas">cacheCanvas</a>

                                
                                
                            </li>
                        
                            <li class="index-item property deprecated inherited">
                                <a href="#property_cacheID">cacheID</a>

                                
                                
                                    <span class="flag deprecated">deprecated</span>
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_compositeOperation">compositeOperation</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_cursor">cursor</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_filters">filters</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_hitArea">hitArea</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_id">id</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_letterSpacing">letterSpacing</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_lineHeight">lineHeight</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_mask">mask</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_maxPoolSize">maxPoolSize</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_mouseEnabled">mouseEnabled</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_name">name</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_parent">parent</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_regX">regX</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_regY">regY</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_rotation">rotation</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_scale">scale</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_scaleX">scaleX</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_scaleY">scaleY</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_shadow">shadow</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_skewX">skewX</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_skewY">skewY</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_snapToPixel">snapToPixel</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_spaceWidth">spaceWidth</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_spriteSheet">spriteSheet</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_stage">stage</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_text">text</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_tickEnabled">tickEnabled</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_transformMatrix">transformMatrix</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_visible">visible</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_x">x</a>

                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_y">y</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            

            
                <div class="index-section events">
                    <h3>Events</h3>

                    <ul class="index-list events extends">
                        
                            <li class="index-item event inherited">
                                <a href="#event_added">added</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_click">click</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_dblclick">dblclick</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_mousedown">mousedown</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_mouseout">mouseout</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_mouseover">mouseover</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_pressmove">pressmove</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_pressup">pressup</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_removed">removed</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_rollout">rollout</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_rollover">rollover</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_tick">tick</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            
        </div>

        
            <div id="methods" class="api-class-tabpanel">
                <h2 class="off-left">Methods</h2>

                
                    <div id="method__applyShadow" class="method item protected inherited">
    <h3 class="name"><code>_applyShadow</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>ctx</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>shadow</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method__applyShadow">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l1273"><code>_applyShadow:1273</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">ctx</code>
                        <span class="type">CanvasRenderingContext2D</span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">shadow</code>
                        <span class="type"><a href="Shadow.html" class="crosslink">Shadow</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__cloneProps" class="method item protected">
    <h3 class="name"><code>_cloneProps</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>o</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="BitmapText.html" class="crosslink">BitmapText</a></span>
        </span>
    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            <p>Inherited from
            <a href="DisplayObject.html#method__cloneProps">
                DisplayObject
            </a>
            
            but overwritten in
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l224"><code>_cloneProps:224</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">o</code>
                        <span class="type"><a href="BitmapText.html" class="crosslink">BitmapText</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="BitmapText.html" class="crosslink">BitmapText</a></span>:
                    
                    <p>o</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__dispatchEvent" class="method item protected inherited">
    <h3 class="name"><code>_dispatchEvent</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>eventObj</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>eventPhase</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="EventDispatcher.html#method__dispatchEvent">EventDispatcher</a>:
            
        
        
        <a href="../files/createjs_events_EventDispatcher.js.html#l380"><code>_dispatchEvent:380</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">eventObj</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> | <a href="Event.html" class="crosslink">Event</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">eventPhase</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__getBounds" class="method item protected inherited">
    <h3 class="name"><code>_getBounds</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>matrix</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>ignoreTransform</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="Rectangle.html" class="crosslink">Rectangle</a></span>
        </span>
    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method__getBounds">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l1320"><code>_getBounds:1320</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">matrix</code>
                        <span class="type"><a href="Matrix2D.html" class="crosslink">Matrix2D</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">ignoreTransform</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                    

                    

                    <div class="param-description">
                        <p>If true, does not apply this object&#39;s transform.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="Rectangle.html" class="crosslink">Rectangle</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__getFrame" class="method item protected">
    <h3 class="name"><code>_getFrame</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>character</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>spriteSheet</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
        </span>
    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l254"><code>_getFrame:254</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">character</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">spriteSheet</code>
                        <span class="type"><a href="SpriteSheet.html" class="crosslink">SpriteSheet</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__getFrameIndex" class="method item protected">
    <h3 class="name"><code>_getFrameIndex</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>character</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>spriteSheet</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
        </span>
    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l238"><code>_getFrameIndex:238</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">character</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">spriteSheet</code>
                        <span class="type"><a href="SpriteSheet.html" class="crosslink">SpriteSheet</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__getLineHeight" class="method item protected">
    <h3 class="name"><code>_getLineHeight</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>ss</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
        </span>
    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l266"><code>_getLineHeight:266</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">ss</code>
                        <span class="type"><a href="SpriteSheet.html" class="crosslink">SpriteSheet</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__getSpaceWidth" class="method item protected">
    <h3 class="name"><code>_getSpaceWidth</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>ss</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
        </span>
    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l277"><code>_getSpaceWidth:277</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">ss</code>
                        <span class="type"><a href="SpriteSheet.html" class="crosslink">SpriteSheet</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__getStage" class="method item protected inherited">
    <h3 class="name"><code>_getStage</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="Stage.html" class="crosslink">Stage</a></span>
        </span>
    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method__getStage">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l677"><code>_getStage:677</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Use the <a href="DisplayObject.html#property_stage" class="crosslink">stage</a> property instead.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="Stage.html" class="crosslink">Stage</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__isMouseOpaque" class="method item protected inherited">
    <h3 class="name"><code>_isMouseOpaque</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
        </span>
    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method__isMouseOpaque">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l1364"><code>_isMouseOpaque:1364</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Indicates whether the display object has any mouse event listeners or a cursor.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__testHit" class="method item protected inherited">
    <h3 class="name"><code>_testHit</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>ctx</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
        </span>
    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method__testHit">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l1303"><code>_testHit:1303</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">ctx</code>
                        <span class="type">CanvasRenderingContext2D</span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__tick" class="method item protected inherited">
    <h3 class="name"><code>_tick</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>evtObj</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method__tick">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l1287"><code>_tick:1287</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">evtObj</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>An event object that will be dispatched to all tick listeners. This object is reused between dispatchers to reduce construction &amp; GC costs.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__transformBounds" class="method item protected inherited">
    <h3 class="name"><code>_transformBounds</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>bounds</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>matrix</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>ignoreTransform</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="Rectangle.html" class="crosslink">Rectangle</a></span>
        </span>
    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method__transformBounds">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l1331"><code>_transformBounds:1331</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">bounds</code>
                        <span class="type"><a href="Rectangle.html" class="crosslink">Rectangle</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">matrix</code>
                        <span class="type"><a href="Matrix2D.html" class="crosslink">Matrix2D</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">ignoreTransform</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                    

                    

                    <div class="param-description">
                        
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="Rectangle.html" class="crosslink">Rectangle</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__updateState" class="method item protected inherited">
    <h3 class="name"><code>_updateState</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method__updateState">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l1225"><code>_updateState:1225</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Called before the object gets drawn and is a chance to ensure the display state of the object is correct.
Mostly used by <a href="MovieClip.html" class="crosslink">MovieClip</a> and <a href="BitmapText.html" class="crosslink">BitmapText</a> to
correct their internal state and children prior to being drawn.</p>
<p>Is manually called via draw in a <a href="Stage.html" class="crosslink">Stage</a> but is automatically called when
present in a <a href="StageGL.html" class="crosslink">StageGL</a> instance.</p>

    </div>

    

    

    
</div>

                
                    <div id="method__updateText" class="method item protected">
    <h3 class="name"><code>_updateText</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l288"><code>_updateText:288</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    

    

    
</div>

                
                    <div id="method_addChild" class="method item">
    <h3 class="name"><code>addChild</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l195"><code>addChild:195</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p><strong>在BitmapText中禁用。</strong></p>

    </div>

    

    

    
</div>

                
                    <div id="method_addChildAt" class="method item">
    <h3 class="name"><code>addChildAt</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l199"><code>addChildAt:199</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p><strong>在BitmapText中禁用。</strong></p>

    </div>

    

    

    
</div>

                
                    <div id="method_addEventListener" class="method item inherited">
    <h3 class="name"><code>addEventListener</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>type</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>listener</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code class="optional">[useCapture]</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="EventDispatcher.html#method_addEventListener">EventDispatcher</a>:
            
        
        
        <a href="../files/createjs_events_EventDispatcher.js.html#l140"><code>addEventListener:140</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p><p>添加指定的事件侦听器。请注意，向同一函数添加多个侦听器将导致触发多个回调。</p>
<h4>Example</h4>

<pre class="code prettyprint"><code> displayObject.addEventListener("click", handleClick);
 function handleClick(event) {
    // Click happened.
 }</code></pre>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>事件类型。</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">listener</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>具有handleEvent方法的对象，或在调度事件时将调用的函数。</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name optional">[useCapture]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>对于冒泡的事件，指示是在捕获阶段还是冒泡/目标阶段侦听事件。</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>:
                    
                    <p>返回用于链接或赋值的侦听器。</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_cache" class="method item inherited">
    <h3 class="name"><code>cache</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>x</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>y</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>width</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>height</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code class="optional">[scale=1]</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code class="optional">[options=undefined]</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method_cache">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l803"><code>cache:803</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>将显示对象绘制到新元素中，然后用于后续绘制。这适用于不经常更改的复杂内容（例如，包含许多不移动的子对象的容器，或复杂的向量形状），可以提供更快的渲染，因为内容不需要在每个刻度处重新渲染。缓存的显示对象可以自由移动、旋转、淡入等，但如果其内容发生更改，则必须再次调用 <code>updateCache()</code> 手动更新缓存。必须通过x、y、w和h参数指定缓存区域。这将定义将使用此显示对象的坐标渲染和缓存的矩形。</p>
<p><h4>Example</h4>
例如：定义一个圆，坐标为(0,0)，半径为25像素：
<pre class="code prettyprint"><code> var shape = new createjs.Shape();
 shape.graphics.beginFill("#ff0000").drawCircle(0, 0, 25);
 shape.cache(-25, -25, 50, 50);</code></pre>
<p>请注意，在应用缓存之前需要定义滤镜，否则必须在应用后调用updateCache。参考 <a href="Filter.html" class="crosslink">Filter</a> 类获取更多信息。某些滤镜（例如BlurFilter）可能无法与比例参数配合使用。</p>
<p>Usually, the resulting cacheCanvas will have the dimensions width <em> scale, height </em> scale, however some filters (ex. BlurFilter)
will add padding to the canvas dimensions.</p>
<p>在以前的版本中，缓存是在DisplayObject上处理的，但此后已移动到<a href="BitmapCache.html" class="crosslink">BitmapCache</a>。这允许更容易的交互和替代缓存方法，如WebGL与<a href="StageGL.html" class="crosslink">StageGL</a>。有关选项对象的详细信息，请参见BitmapCache<a href="BitmapCache.html#method_define" class="crosslink">定义</a>。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">x</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        <p>缓存区域的x坐标原点。</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">y</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        <p>缓存区域的y坐标原点。</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">width</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        <p>缓存区域的宽度。</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">height</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        <p>缓存区域的高度。</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name optional">[scale=1]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>将创建缓存的比例。例如，如果使用我的形状。myShape.cache(0,0,100,100,2)，则生成的cacheCanvas将为200x200 px。这样可以缩放和旋转具有更高保真度的缓存元素。默认值为1。</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name optional">[options=undefined]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>Specify additional parameters for the cache logic</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_clone" class="method item inherited">
    <h3 class="name"><code>clone</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="DisplayObject.html" class="crosslink">DisplayObject</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method_clone">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l1203"><code>clone:1203</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>返回此DisplayObject实例的克隆对象。特定于此实例当前上下文的某些属性将恢复为其默认值（例如parent）。 Caches are not maintained across clones, 某些元素是通过引用复制的（遮罩、单个滤镜实例、命中区域）</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="DisplayObject.html" class="crosslink">DisplayObject</a></span>:
                    
                    <p>当前DisplayObject实例的克隆。</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_dispatchEvent" class="method item inherited">
    <h3 class="name"><code>dispatchEvent</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>eventObj</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code class="optional">[bubbles]</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code class="optional">[cancelable]</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
                <p>Inherited from
                <a href="EventDispatcher.html#method_dispatchEvent">EventDispatcher</a>:
        <a href="../files/createjs_events_EventDispatcher.js.html#l285"><code>dispatchEvent:285</code></a>
        </p>
    </div>
    <div class="description">
        <p><p>将指定的事件分派给所有侦听器。</p>
<h4>Example</h4>
<pre class="code prettyprint"><code> // Use a string event
 this.dispatchEvent("complete");

 // Use an Event instance
 var event = new createjs.Event("progress");
 this.dispatchEvent(event);</code></pre>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">eventObj</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="Event.html" class="crosslink">Event</a></span>
                    

                    

                    <div class="param-description">
                        <p>具有"type"属性或字符串类型的对象。虽然通用object可以工作，但建议使用CreateJS Event实例。如果使用字符串，dispatchEvent将在必要时使用指定类型构造Event实例。后一种方法可用于避免对可能没有任何侦听器的非冒泡事件进行事件对象实例化。</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name optional">[bubbles]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>指定事件是否冒泡。</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name optional">[cancelable]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>(default = false) — 确定是否可以取消 Event 对象。默认值为 false。</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
                    
                    <p>如果成功调度了事件，则值为 true。值 false 表示失败或对事件调用了 preventDefault()。</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_draw" class="method item inherited">
    <h3 class="name"><code>draw</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>ctx</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code class="optional">[ignoreCache=false]</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method_draw">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l752"><code>draw:752</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>将显示对象绘制到指定的上下文中，忽略visible、alpha、shadow和transform。如果处理了绘图，则返回<code>true</code>（用于覆盖功能）。</p>
<p>注意：此方法主要用于内部，但对于高级用途可能有用。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">ctx</code>
                        <span class="type">CanvasRenderingContext2D</span>
                    

                    

                    <div class="param-description">
                        <p>要绘制到canvas 2D的上下文对象。</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name optional">[ignoreCache=false]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>指示绘制操作是否应忽略任何当前缓存。例如，用于绘制缓存（以防止其仅将现有缓存绘制回自身）。</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getBounds" class="method item inherited">
    <h3 class="name"><code>getBounds</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="Rectangle.html" class="crosslink">Rectangle</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method_getBounds">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l1100"><code>getBounds:1100</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>返回一个矩形，该矩形表示该对象在其局部坐标系中的边界（即无变换）。已缓存的对象将返回缓存的边界。</p>
<p>并非所有显示对象都可以计算自己的边界（例如Shape）。对于这些对象，可以使用<a href="DisplayObject.html#method_setBounds" class="crosslink">setBounds</a>，以便在计算容器边界时包含它们。</p>
<table>
    <tr><td><b>All</b></td><td>
        所有显示对象都支持使用setBounds()手动设置边界。同样，使用cache()缓存的显示对象将返回其缓存的边界。手动和缓存边界将覆盖下面列出的自动计算。
    </td></tr>
    <tr><td><b>Bitmap</b></td><td>
        返回Bitmap/sourceRect（如果指定）或图像的宽度和高度，从（x=0，y=0）位置开始计算。
    </td></tr>
    <tr><td><b>Sprite</b></td><td>
        返回当前帧的边界。如果在spritesheet data中指定了帧注册点，则x/y可能为非零。另请参见<a href="SpriteSheet.html#method_getFrameBounds" class="crosslink">getFrameBounds</a>。
    </td></tr>
    <tr><td><b>Container</b></td><td>
        返回一个边界，该边界是所有子对象的非空边界的聚合（组合）。
    </td></tr>
    <tr><td><b>Shape</b></td><td>
        当前不支持自动边界计算。使用<code>setBounds()</code>手动定义边界。
    </td></tr>
    <tr><td><b>Text</b></td><td>
        返回近似边界。水平值（x/宽度）非常准确，但垂直值（y/高度）则不准确，尤其是在使用<a href="Text.html#property_textBaseline" class="crosslink">textBaseline</a>值而不是“top”时。
    </td></tr>
    <tr><td><b>BitmapText</b></td><td>
        返回近似边界。如果spritesheet帧注册点接近（x=0，y=0），则值将更准确。
    </td></tr>
</table>

<p>对于某些对象（例如，文本或具有许多子对象的容器），计算边界可能会花费大量时间，并且每次调用getBounds()时都会重新计算边界。通过显式设置边界，可以防止对静态对象进行重新计算：</p>
<pre class="code prettyprint"><code>var bounds = obj.getBounds();
obj.setBounds(bounds.x, bounds.y, bounds.width, bounds.height);
// getBounds will now use the set values, instead of recalculating</code></pre>
<p>为了减少内存影响，返回的Rectangle实例可以在内部重用；如果需要保留实例，请克隆实例或复制其值。</p>
<pre class="code prettyprint"><code>var myBounds = obj.getBounds().clone();
// OR:
myRect.copy(obj.getBounds());</code></pre>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="Rectangle.html" class="crosslink">Rectangle</a></span>:
                    
                    <p>表示边界的矩形实例，如果此对象的边界不可用，则为空。</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getCacheDataURL" class="method item inherited">
    <h3 class="name"><code>getCacheDataURL</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method_getCacheDataURL">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l886"><code>getCacheDataURL:886</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>返回缓存的数据URL，如果未缓存此显示对象，则返回null。仅在缓存发生更改时生成，否则返回最后一个结果。</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
                    
                    <p>缓存的图像数据url。</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getConcatenatedDisplayProps" class="method item inherited">
    <h3 class="name"><code>getConcatenatedDisplayProps</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code class="optional">[props]</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="DisplayProps.html" class="crosslink">DisplayProps</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#method_getConcatenatedDisplayProps">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l1032"><code>getConcatenatedDisplayProps:1032</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>生成一个DisplayProps对象，表示当前对象及其所有父Container到最顶层的容器（通常为<a href="Stage.html" class="crosslink">Stage</a>）的组合显示属性。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name optional">[props]</code>
                        <span class="type"><a href="DisplayProps.html" class="crosslink">DisplayProps</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>用计算值填充的<a href="DisplayProps.html" class="crosslink">DisplayProps</a>对象。如果为null，则返回新的DisplayProps对象。</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="DisplayProps.html" class="crosslink">DisplayProps</a></span>:
                    
                    <p>组合显示属性。</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getConcatenatedMatrix" class="method item inherited">
    <h3 class="name"><code>getConcatenatedMatrix</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code class="optional">[matrix]</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="Matrix2D.html" class="crosslink">Matrix2D</a></span>
        </span>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_getConcatenatedMatrix">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l1014"><code>getConcatenatedMatrix:1014</code></a>
        </p>
    </div>
    <div class="description">
        <p>生成一个Matrix2D对象，表示显示对象及其所有父容器包括最顶层的根容器(usually the <a href="Stage.html" class="crosslink">Stage</a>)。这可以用于在坐标空间之间转换位置，例如使用<a href="DisplayObject.html#method_localToGlobal" class="crosslink">localToGlobal</a>
和<a href="DisplayObject.html#method_globalToLocal" class="crosslink">globalToLocal</a>。</p>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name optional">[matrix]</code>
                        <span class="type"><a href="Matrix2D.html" class="crosslink">Matrix2D</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>用计算值填充的<a href="Matrix2D.html" class="crosslink">Matrix2D</a>对象。如果为空，则返回一个新的Matrix2D对象。</p>
                    </div>
                </li>
            </ul>
        </div>
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                        <span class="type"><a href="Matrix2D.html" class="crosslink">Matrix2D</a></span>:
                    <p>组合矩阵。</p>
            </div>
        </div>
</div>          
                    <div id="method_getMatrix" class="method item inherited">
    <h3 class="name"><code>getMatrix</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>matrix</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
        <span class="returns-inline">
            <span class="type"><a href="Matrix2D.html" class="crosslink">Matrix2D</a></span>
        </span>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_getMatrix">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l1002"><code>getMatrix:1002</code></a>
        </p>
    </div>
    <div class="description">
        <p>基于此对象的当前变换返回矩阵。</p>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">matrix</code>
                        <span class="type"><a href="Matrix2D.html" class="crosslink">Matrix2D</a></span>
                    <div class="param-description">
                        <p>可选择的用计算值填充的Matrix2D对象。如果为null，则返回一个新的Matrix对象。</p>
                    </div>
                </li>
            </ul>
        </div>
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                        <span class="type"><a href="Matrix2D.html" class="crosslink">Matrix2D</a></span>:
                    <p>表示此显示对象的变换的矩阵。</p>
            </div>
        </div>
</div>  
                    <div id="method_getStage" class="method item deprecated inherited">
    <h3 class="name"><code>getStage</code></h3>
        <span class="paren">()</span>
        <span class="flag deprecated">已弃用</span>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_getStage">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l691"><code>getStage:691</code></a>
        </p>
    </div>
    <div class="description">
        <p>请改用<a href="DisplayObject.html#property_stage" class="crosslink">stage</a>属性。</p>
    </div>    
</div>
                    <div id="method_getTransformedBounds" class="method item inherited">
    <h3 class="name"><code>getTransformedBounds</code></h3>
        <span class="paren">()</span>
        <span class="returns-inline">
            <span class="type"><a href="Rectangle.html" class="crosslink">Rectangle</a></span>
        </span>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_getTransformedBounds">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l1166"><code>getTransformedBounds:1166</code></a>
        </p>
    </div>
    <div class="description">
        <p>返回一个矩形，表示该对象在其父坐标系中的边界（即应用了变换）。已缓存的对象将返回缓存的变换边界。</p>
<p>并非所有显示对象都可以计算自己的边界（例如形状）。对于这些对象，可以使用<a href="DisplayObject.html#method_setBounds" class="crosslink">setBounds</a>，以便在计算容器边界时包含它们。</p>
<p>为了减少内存影响，返回的Rectangle实例可以在内部重用；如果需要保留实例，请克隆实例或复制其值。</p>
<p>容器实例计算通过getBounds返回边界的所有子级的聚合边界。</p>
    </div>
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                        <span class="type"><a href="Rectangle.html" class="crosslink">Rectangle</a></span>:
                    <p>表示边界的矩形实例，如果此对象的边界不可用，则为空。</p>
            </div>
        </div>
</div>
                    <div id="method_globalToLocal" class="method item inherited">
    <h3 class="name"><code>globalToLocal</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>x</code>
                </li>
                <li class="arg">
                        <code>y</code>
                </li>
                <li class="arg">
                        <code class="optional">[pt]</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
        <span class="returns-inline">
            <span class="type"><a href="Point.html" class="crosslink">Point</a></span>
        </span>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_globalToLocal">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l921"><code>globalToLocal:921</code></a>
        </p>
    </div>

    <div class="description">
        <p>将指定的x和y位置从全局（阶段）坐标空间转换为显示对象的坐标空间。例如，这可以用于确定显示对象中的当前鼠标位置。返回一个Point实例，该实例具有与显示对象坐标空间中变换位置相关的x和y属性。</p>
<h4>Example</h4>

<pre class="code prettyprint"><code> displayObject.x = 300;
 displayObject.y = 200;
 stage.addChild(displayObject);
 var point = displayObject.globalToLocal(100, 100);
 // Results in x=-200, y=-100</code></pre>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">x</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    <div class="param-description">
                        <p>要变换的舞台上的x位置。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name">y</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    <div class="param-description">
                        <p>要变换的舞台上的y位置。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[pt]</code>
                        <span class="type"><a href="Point.html" class="crosslink">Point</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>

                    <div class="param-description">
                        <p>要将结果复制到其中的对象。如果省略，将返回具有x/y属性的新Point对象。</p>
                    </div>
                </li>
            </ul>
        </div>
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                    <span class="type"><a href="Point.html" class="crosslink">Point</a></span>:
                    <p>具有与显示对象坐标空间中的变换位置相关联的x和y特性的Point实例。</p>
            </div>
        </div>
</div>
                    <div id="method_hasEventListener" class="method item inherited">
    <h3 class="name"><code>hasEventListener</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>type</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
        </span>
    <div class="meta">
                <p>Inherited from
                <a href="EventDispatcher.html#method_hasEventListener">EventDispatcher</a>:
        <a href="../files/createjs_events_EventDispatcher.js.html#l339"><code>hasEventListener:339</code></a>
        </p>
    </div>
    <div class="description">
        <p>检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。</p>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    <div class="param-description">
                        <p>The string type of the event.</p>
                    </div>
                </li>
            </ul>
        </div>
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
                    <p>如果指定类型的侦听器已注册，则值为 true；否则，值为 false。</p>
            </div>
        </div>
</div>  
                    <div id="method_hitTest" class="method item inherited">
    <h3 class="name"><code>hitTest</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>x</code>
                </li>
                <li class="arg">
                        <code>y</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
        </span>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_hitTest">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l1053"><code>hitTest:1053</code></a>
        </p>
    </div>
    <div class="description">
        <p>测试显示对象是否与局部坐标中的指定点相交（即在指定位置绘制alpha>0的像素）。这会忽略显示对象的alpha、shadow、hitArea、mask和compositeOperation。</p>
<h4>Example</h4>

<pre class="code prettyprint"><code> stage.addEventListener("stagemousedown", handleMouseDown);
 function handleMouseDown(event) {
     var hit = myShape.hitTest(event.stageX, event.stageY);
 }</code></pre>
<p>请注意，EaselJS目前不支持形状到形状碰撞。</p>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">x</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    <div class="param-description">
                        <p>要测试的此对象的 x 坐标。</p>
                    </div>
                </li>
            
                <li class="param">
                        <code class="param-name">y</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    <div class="param-description">
                        <p>要测试的此对象的 y 坐标。</p>
                    </div>
                </li>
            </ul>
        </div>
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
                    <p>如果显示对象与指定的点重叠或相交，则为 true；否则为 false。</p>
            </div>
        </div>
</div>  
                    <div id="method_isVisible" class="method item">
    <h3 class="name"><code>isVisible</code></h3>
        <span class="paren">()</span>
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
        </span>
    <div class="meta">
            <p>Inherited from
            <a href="DisplayObject.html#method_isVisible">
                DisplayObject
            </a>
            but overwritten in
        <a href="../files/easeljs_display_BitmapText.js.html#l179"><code>isVisible:179</code></a>
        </p>
    </div>
    <div class="description">
        <p>返回true或false，指示显示对象在绘制到画布时是否可见。这并不能说明它在舞台边界内是否可见。注：此方法主要用于内部使用，但对于高级用途可能有用。</p>
    </div>    
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
                    <p>布尔值，指示如果绘制到画布上，显示对象是否可见</p>
            </div>
        </div>
</div>
                    <div id="method_localToGlobal" class="method item inherited">
    <h3 class="name"><code>localToGlobal</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>x</code>
                </li>
                <li class="arg">
                        <code>y</code>
                </li>
                <li class="arg">
                        <code class="optional">[pt]</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
        <span class="returns-inline">
            <span class="type"><a href="Point.html" class="crosslink">Point</a></span>
        </span>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_localToGlobal">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l896"><code>localToGlobal:896</code></a>
        </p>
    </div>
    <div class="description">
        <p>将指定的x和y位置从显示对象的坐标空间转换为全局（stage）坐标空间。例如，这可以用于将HTML标签放置在嵌套显示对象上的特定点上。返回一个Point实例，该实例具有与stage上转换的坐标相关的x和y属性。</p>
<h4>Example</h4>
<pre class="code prettyprint"><code> displayObject.x = 300;
 displayObject.y = 200;
 stage.addChild(displayObject);
 var point = displayObject.localToGlobal(100, 100);
 // Results in x=400, y=300</code></pre>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">x</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    <div class="param-description">
                        <p>The x position in the source display object to transform.</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name">y</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    <div class="param-description">
                        <p>The y position in the source display object to transform.</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[pt]</code>
                        <span class="type"><a href="Point.html" class="crosslink">Point</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>要将结果复制到其中的对象。如果省略，将返回具有x/y属性的新Point对象。</p>
                    </div>
                </li>
            </ul>
        </div>
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                        <span class="type"><a href="Point.html" class="crosslink">Point</a></span>:
                    <p>一个Point实例，其x和y属性与stage上变换的坐标相关。</p>
            </div>
        </div>
</div>
                    <div id="method_localToLocal" class="method item inherited">
    <h3 class="name"><code>localToLocal</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>x</code>
                </li>
                <li class="arg">
                        <code>y</code>
                </li>
                <li class="arg">
                        <code>target</code>
                </li>
                <li class="arg">
                        <code class="optional">[pt]</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
        <span class="returns-inline">
            <span class="type"><a href="Point.html" class="crosslink">Point</a></span>
        </span>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_localToLocal">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l946"><code>localToLocal:946</code></a>
        </p>
    </div>
    <div class="description">
        <p>将指定的x和y位置从该显示对象的坐标空间转换为目标显示对象的空间。返回一个Point实例，该实例具有与目标坐标空间中变换位置相关的x和y属性。实际上，这与对<a href="DisplayObject.html#method_localToGlobal" class="crosslink">localToGlobal</a>和<a href="DisplayObject.html#method_globalToLocal" class="crosslink">globalToLocal</a>使用以下代码相同。</p>
<pre class="code prettyprint"><code> var pt = this.localToGlobal(x, y);
 pt = target.globalToLocal(pt.x, pt.y);</code></pre>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">x</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    <div class="param-description">
                        <p>The x position in the source display object to transform.</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name">y</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    <div class="param-description">
                        <p>The y position on the source display object to transform.</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name">target</code>
                        <span class="type"><a href="DisplayObject.html" class="crosslink">DisplayObject</a></span>
                    <div class="param-description">
                        <p>将转换后的坐标应用到目标显示对象。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[pt]</code>
                        <span class="type"><a href="Point.html" class="crosslink">Point</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>要将结果复制到其中的对象。如果省略，将返回具有x/y属性的新Point对象。</p>
                    </div>
                </li>
            </ul>
        </div>
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                        <span class="type"><a href="Point.html" class="crosslink">Point</a></span>:
                    <p>返回一个Point实例，该实例具有与目标坐标空间中变换位置相关的x和y属性。</p> 
            </div>
        </div>
</div>
                    <div id="method_off" class="method item inherited">
    <h3 class="name"><code>off</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>type</code>
                </li>
                <li class="arg">
                        <code>listener</code>
                </li>
                <li class="arg">
                        <code class="optional">[useCapture]</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
    <div class="meta">
                <p>Inherited from
                <a href="EventDispatcher.html#method_off">EventDispatcher</a>:
        <a href="../files/createjs_events_EventDispatcher.js.html#l249"><code>off:249</code></a>
        </p>
    </div>
    <div class="description">
        <p>removeEventListener方法的简短写法，具有相同的参数和返回值。这是.on方法的补充。</p>
<p><b>重要提示：</b>要删除添加了<code>on</code>的侦听器，必须将返回的包装函数作为侦听器传入。有关示例，请参见<a href="EventDispatcher.html#method_on" class="crosslink">on</a>。</p>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    <div class="param-description">
                        <p>事件的类型。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name">listener</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    <div class="param-description">
                        <p>侦听器函数或对象。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[useCapture]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>对于冒泡的事件，指示是在捕获阶段还是冒泡/目标阶段侦听事件。</p>
                    </div>
                </li>
            </ul>
        </div>
</div>
                    <div id="method_on" class="method item inherited">
    <h3 class="name"><code>on</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>type</code>
                </li>
                <li class="arg">
                        <code>listener</code>
                </li>
                <li class="arg">
                        <code class="optional">[scope]</code>
                </li>
                <li class="arg">
                        <code class="optional">[once=false]</code>
                </li>
                <li class="arg">
                        <code class="optional">[data]</code>
                </li>
                <li class="arg">
                        <code class="optional">[useCapture=false]</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
        </span>
    <div class="meta">
                <p>Inherited from
                <a href="EventDispatcher.html#method_on">EventDispatcher</a>:
        <a href="../files/createjs_events_EventDispatcher.js.html#l173"><code>on:173</code></a>
        </p>
    </div>
    <div class="description">
        <p><p>使用addEventListener的一种简短写法，可以更轻松地指定执行范围、让侦听器只运行一次、将任意数据与侦听器关联并删除侦听器。</p>
<p><p>此方法通过创建匿名包装函数并使用addEventListener订阅它来工作。包装函数将返回以与<code>removeEventListener</code>（或<code>off</code>）一起使用。</p>
<p><p><b>重要提示：</b>要删除调用<code>on</code>添加的侦听器，必须将返回的包装函数作为侦听器传入，或者使用<a href="Event.html#method_remove" class="crosslink">remove</a>。同样，每次调用<code>on</code>添加新包装器函数时都会被订阅，因此使用相同参数对<code>on</code>的多次调用将创建多个侦听器。</p>
<h4>Example</h4>
<pre class="code prettyprint"><code>    var listener = myBtn.on("click", handleClick, null, false, {count:3});
    function handleClick(evt, data) {
        data.count -= 1;
        console.log(this == myBtn); // true - scope defaults to the dispatcher
        if (data.count == 0) {
            alert("clicked 3 times!");
            myBtn.off("click", listener);
            // alternately: evt.remove();
        }
    }</code></pre>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    <div class="param-description">
                        <p>事件的类型。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name">listener</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    <div class="param-description">
                        <p>具有handleEvent方法的对象，或在调度事件时将调用的函数。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[scope]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>执行侦听器的范围。对于函数侦听器，默认为dispatcher/currentTarget，对于对象侦听器，则默认为侦听器本身（即使用handleEvent）。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[once=false]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>如果为true，侦听器将在第一次触发后移除自身。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[data]</code>
                        <span class="type"></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>调用侦听器时将作为第二个参数包含的任意数据。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[useCapture=false]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>对于冒泡的事件，指示是在捕获阶段还是冒泡/目标阶段侦听事件。</p>
                    </div>
                </li>
            </ul>
        </div>
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>:
                    <p>返回创建并指定为侦听器的匿名函数。这是以后使用.removeEventListener删除侦听器所必需的。</p>                
            </div>
        </div>    
</div>
                    <div id="method_removeAllChildren" class="method item">
    <h3 class="name"><code>removeAllChildren</code></h3>
        <span class="paren">()</span>
    <div class="meta">
                <p>
                Defined in
        <a href="../files/easeljs_display_BitmapText.js.html#l211"><code>removeAllChildren:211</code></a>
        </p>
    </div>
    <div class="description">
        <p><strong>Disabled in BitmapText.</strong></p>
    </div>
</div>      
                    <div id="method_removeAllEventListeners" class="method item inherited">
    <h3 class="name"><code>removeAllEventListeners</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code class="optional">[type]</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
    <div class="meta">
                <p>Inherited from
                <a href="EventDispatcher.html#method_removeAllEventListeners">EventDispatcher</a>:
        <a href="../files/createjs_events_EventDispatcher.js.html#l263"><code>removeAllEventListeners:263</code></a>
        </p>        
    </div>
    <div class="description">
        <p><p>删除指定类型的所有侦听器或所有类型的所有监听器。</p>
<h4>Example</h4>
<pre class="code prettyprint"><code> // Remove all listeners
 displayObject.removeAllEventListeners();

 // Remove all click listeners
 displayObject.removeAllEventListeners("click");</code></pre>

    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name optional">[type]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>事件的字符串类型。如果省略，则将删除所有类型的所有侦听器。</p>
                    </div>
                </li>
            </ul>
        </div>
</div>  
                    <div id="method_removeChild" class="method item">
    <h3 class="name"><code>removeChild</code></h3>
        <span class="paren">()</span>
    <div class="meta">
                <p>
                Defined in
        <a href="../files/easeljs_display_BitmapText.js.html#l203"><code>removeChild:203</code></a>
        </p>
    </div>
    <div class="description">
        <p><strong>Disabled in BitmapText.</strong></p>
    </div>
</div>
                    <div id="method_removeChildAt" class="method item">
    <h3 class="name"><code>removeChildAt</code></h3>
        <span class="paren">()</span>
    <div class="meta">
                <p>
                Defined in
        <a href="../files/easeljs_display_BitmapText.js.html#l207"><code>removeChildAt:207</code></a>
        </p>
    </div>
    <div class="description">
        <p><strong>Disabled in BitmapText.</strong></p>
    </div>
</div>      
                    <div id="method_removeEventListener" class="method item inherited">
    <h3 class="name"><code>removeEventListener</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>type</code>
                </li>
                <li class="arg">
                        <code>listener</code>
                </li>
                <li class="arg">
                        <code class="optional">[useCapture]</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
    <div class="meta">
                <p>Inherited from
                <a href="EventDispatcher.html#method_removeEventListener">EventDispatcher</a>:
        <a href="../files/createjs_events_EventDispatcher.js.html#l219"><code>removeEventListener:219</code></a>
        </p>
    </div>
    <div class="description">
        <p><p>删除指定的事件侦听器。</p>
<p><p><b>重要提示：</b>您必须传递添加事件时使用的确切函数引用。如果使用代理函数或函数闭包作为回调，则必须使用代理/闭包引用-新的代理或闭包将不起作用。</p>
<h4>Example</h4>
<pre class="code prettyprint"><code> displayObject.removeEventListener("click", handleClick);</code></pre>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    <div class="param-description">
                        <p>事件的类型。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name">listener</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    <div class="param-description">
                        <p>侦听器函数或对象。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[useCapture]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>对于冒泡的事件，指示是在捕获阶段还是冒泡/目标阶段侦听事件。</p>
                    </div>
                </li>
            </ul>
        </div>
</div>  
                    <div id="method_set" class="method item inherited">
    <h3 class="name"><code>set</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>props</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
        <span class="returns-inline">
            <span class="type"><a href="DisplayObject.html" class="crosslink">DisplayObject</a></span>
        </span>
        <span class="flag chainable">chainable</span>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_set">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l1082"><code>set:1082</code></a>
        </p>
    </div>
    <div class="description">
        <p>提供一个可链式调用的方式，用于在实例上设置多个属性。</p>
<h4>Example</h4>
<pre class="code prettyprint"><code> var myGraphics = new createjs.Graphics().beginFill("#ff0000").drawCircle(0, 0, 25);
 var shape = stage.addChild(new Shape()).set({graphics:myGraphics, x:100, y:100, alpha:0.5});</code></pre>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">props</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    <div class="param-description">
                        <p>包含要复制到显示对象实例的属性的常规对象。</p>
                    </div>
                </li>
            </ul>
        </div>
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                        <span class="type"><a href="DisplayObject.html" class="crosslink">DisplayObject</a></span>:
                    <p>返回修改后的DisplayObject实例（用于链式调用）。</p>
            </div>
        </div>
</div>
                    <div id="method_setBounds" class="method item inherited">
    <h3 class="name"><code>setBounds</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>x</code>
                </li>
                <li class="arg">
                        <code>y</code>
                </li>
                <li class="arg">
                        <code>width</code>
                </li>
                <li class="arg">
                        <code>height</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_setBounds">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l1185"><code>setBounds:1185</code></a>
        </p>
    </div>
    <div class="description">
        <p>允许您手动指定对象的边界，这些边界要么无法计算自己的边界（例如Shape和Text）以供将来参考，要么可以将对象包含在容器边界中。手动设置边界将始终覆盖计算的边界。</p>
<p>边界应在对象的本地（未转换）坐标中指定。例如，以坐标(0,0)为中心半径为25px圆的形状实例的边界为(-25, -25, 50, 50)。</p>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">x</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    <div class="param-description">
                        <p>边界原点x轴坐标。传递null将删除手动边界。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name">y</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    <div class="param-description">
                        <p>边界原点y轴坐标。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name">width</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    <div class="param-description">
                        <p>边界的宽度。</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name">height</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    <div class="param-description">
                        <p>边界的高度。</p>
                    </div>
                </li>
            </ul>
        </div>
</div>
                    <div id="method_setTransform" class="method item inherited">
    <h3 class="name"><code>setTransform</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code class="optional">[x=0]</code>
                </li>
                <li class="arg">
                        <code class="optional">[y=0]</code>
                </li>
                <li class="arg">
                        <code class="optional">[scaleX=1]</code>
                </li>
                <li class="arg">
                        <code class="optional">[scaleY=1]</code>
                </li>
                <li class="arg">
                        <code class="optional">[rotation=0]</code>
                </li>
                <li class="arg">
                        <code class="optional">[skewX=0]</code>
                </li>
                <li class="arg">
                        <code class="optional">[skewY=0]</code>
                </li>
                <li class="arg">
                        <code class="optional">[regX=0]</code>
                </li>
                <li class="arg">
                        <code class="optional">[regY=0]</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
        <span class="returns-inline">
            <span class="type"><a href="DisplayObject.html" class="crosslink">DisplayObject</a></span>
        </span>
        <span class="flag chainable">chainable</span>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_setTransform">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l968"><code>setTransform:968</code></a>
        </p>
    </div>
    <div class="description">
        <p>快速在显示对象上设置变换属性的快捷方法。所有参数都是可选的。省略的参数将具有默认值集。</p>
<h4>Example</h4>
<pre class="code prettyprint"><code> displayObject.setTransform(100, 100, 2, 2);</code></pre>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name optional">[x=0]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>以像素为单位的水平平移（X位置）</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[y=0]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>以像素为单位的垂直平移（Y位置）</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[scaleX=1]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>水平比例，1表示100%</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[scaleY=1]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>垂直比例，1表示100%</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[rotation=0]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>The rotation, in degrees</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[skewX=0]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>水平倾斜系数</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[skewY=0]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>垂直倾斜系数</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[regX=0]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>以像素为单位的水平注册点</p>
                    </div>
                </li>
                <li class="param">
                        <code class="param-name optional">[regY=0]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    <div class="param-description">
                        <p>以像素为单位的垂直注册点</p>
                    </div>
                </li>
            </ul>
        </div>
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                        <span class="type"><a href="DisplayObject.html" class="crosslink">DisplayObject</a></span>:
                    <p>返回此实例。用于链式调用。</p>
            </div>
        </div>
</div>  
                    <div id="method_toString" class="method item inherited">
    <h3 class="name"><code>toString</code></h3>
        <span class="paren">()</span>
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
        </span>
    <div class="meta">
            <p>Inherited from
            <a href="EventDispatcher.html#method_toString">
                EventDispatcher
            </a>
            but overwritten in
        <a href="../files/easeljs_display_DisplayObject.js.html#l1214"><code>toString:1214</code></a>
        </p>
    </div>
    <div class="description">
        <p>返回此对象的字符串表示形式。</p>
    </div>
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
                    <p>实例的字符串表示。</p>
            </div>
        </div>
</div>  
                    <div id="method_uncache" class="method item inherited">
    <h3 class="name"><code>uncache</code></h3>
        <span class="paren">()</span>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_uncache">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l875"><code>uncache:875</code></a>
        </p>
    </div>
    <div class="description">
        <p>清除当前缓存。有关详细信息，请参见<a href="DisplayObject.html#method_cache" class="crosslink">cache</a>。</p>
    </div>
</div>
                    <div id="method_updateCache" class="method item inherited">
    <h3 class="name"><code>updateCache</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>compositeOperation</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_updateCache">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l846"><code>updateCache:846</code></a>
        </p>
    </div>

    <div class="description">
        <p>将显示对象的缓存重绘。没有活动缓存时调用UpdateCache将引发错误。如果CompositeOperation为null，则在绘制之前将清除当前缓存。否则，将使用指定的组合操作在现有缓存上绘制显示对象。</p>
<p><h4>Example</h4>
清除当前图形，绘制一些新指令，然后更新缓存。新线将在旧线的顶部绘制。
<pre class="code prettyprint"><code> // Not shown: Creating the shape, and caching it.
 shapeInstance.clear();
 shapeInstance.setStrokeStyle(3).beginStroke("#ff0000").moveTo(100, 100).lineTo(200,200);
 shapeInstance.updateCache();</code></pre>
<p>在以前的版本中，缓存是在DisplayObject上处理的，但此后已移动到<a href="BitmapCache.html" class="crosslink">BitmapCache</a>。这允许更容易的交互和替代缓存方法，如webgl和<a href="StageGL.html" class="crosslink">StageGL</a>。</p>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">compositeOperation</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    <div class="param-description">
                        <p>要使用的复合操作，如果为null将清除缓存并重新绘制缓存。
<a href="https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-globalcompositeoperation">
whatwg spec on compositing</a>.</p>
                    </div>
                </li>
            </ul>
        </div>
</div>
                    <div id="method_updateContext" class="method item inherited">
    <h3 class="name"><code>updateContext</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>ctx</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#method_updateContext">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l771"><code>updateContext:771</code></a>
        </p>
    </div>
    <div class="description">
        <p>将此显示对象的transformation、alpha、globalCompositeOperation、裁剪路径（mask）和shadow应用于指定的上下文。This is typically called prior to <a href="DisplayObject.html#method_draw" class="crosslink">draw</a>.</p>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">ctx</code>
                        <span class="type">CanvasRenderingContext2D</span>
                    <div class="param-description">
                        <p>The canvas 2D to update.</p>
                    </div>
                </li>
            </ul>
        </div>
</div>
                    <div id="method_willTrigger" class="method item inherited">
    <h3 class="name"><code>willTrigger</code></h3>
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>type</code>
                </li>
            </ul><span class="paren">)</span>
        </div>
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
        </span>
    <div class="meta">
                <p>Inherited from
                <a href="EventDispatcher.html#method_willTrigger">EventDispatcher</a>:
        <a href="../files/createjs_events_EventDispatcher.js.html#l350"><code>willTrigger:350</code></a>
        </p>
    </div>
    <div class="description">
        <p>指示此对象或其任何祖先（父对象、父对象的父对象等）上是否至少有一个指定事件类型的侦听器。返回值为True表示，如果从该对象发送指定类型的气泡事件，它将触发至少一个侦听器。</p>
<p>这类似于<a href="EventDispatcher.html#method_hasEventListener" class="crosslink">hasEventListener</a>，但它搜索侦听器的整个事件流，而不仅仅是这个对象。</p>
    </div>
        <div class="params">
            <h4>Parameters:</h4>
            <ul class="params-list">
                <li class="param">
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    <div class="param-description">
                        <p>The string type of the event.</p>
                    </div>
                </li>
            </ul>
        </div>
        <div class="returns">
            <h4>Returns:</h4>
            <div class="returns-description">
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
                    <p>如果指定事件至少有一个侦听器，则返回<code>true</code>。</p>
            </div>
        </div>
</div>
            </div>
            <div id="properties" class="api-class-tabpanel">
                <h2 class="off-left">Properties</h2>
                    <div id="property__bounds" class="property item protected inherited">
    <h3 class="name"><code>_bounds</code></h3>
    <span class="type"><a href="Rectangle.html" class="crosslink">Rectangle</a></span>
        <span class="flag protected">protected</span>
    <div class="meta">
                <p>Inherited from
                <a href="DisplayObject.html#property__bounds">DisplayObject</a>:
        <a href="../files/easeljs_display_DisplayObject.js.html#l446"><code>_bounds:446</code></a>
        </p>
    </div>
    <div class="description">
    </div>
        <p><strong>Default:</strong> null</p>
</div>
                    <div id="property__cacheDataURL" class="property item protected deprecated inherited">
    <h3 class="name"><code>_cacheDataURL</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    
        <span class="flag deprecated">deprecated</span>
    

    
        <span class="flag protected">protected</span>
    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property__cacheDataURL">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l421"><code>_cacheDataURL:421</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Moved to <a href="BitmapCache.html" class="crosslink">BitmapCache</a></p>

    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property__cacheDataURLID" class="property item protected deprecated inherited">
    <h3 class="name"><code>_cacheDataURLID</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    
        <span class="flag deprecated">deprecated</span>
    

    
        <span class="flag protected">protected</span>
    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property__cacheDataURLID">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l412"><code>_cacheDataURLID:412</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Moved to <a href="BitmapCache.html" class="crosslink">BitmapCache</a></p>

    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property__cacheScale" class="property item protected deprecated inherited">
    <h3 class="name"><code>_cacheScale</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    
        <span class="flag deprecated">deprecated</span>
    

    
        <span class="flag protected">protected</span>
    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property__cacheScale">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l403"><code>_cacheScale:403</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Moved to <a href="BitmapCache.html" class="crosslink">BitmapCache</a></p>

    </div>

    
        <p><strong>Default:</strong> 1</p>
    

    

    
</div>

                
                    <div id="property__captureListeners" class="property item protected inherited">
    <h3 class="name"><code>_captureListeners</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="EventDispatcher.html#property__captureListeners">EventDispatcher</a>:
            
        
        
        <a href="../files/createjs_events_EventDispatcher.js.html#l106"><code>_captureListeners:106</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        
    </div>

    

    

    
</div>

                
                    <div id="property__drawAction" class="property item protected">
    <h3 class="name"><code>_drawAction</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l133"><code>_drawAction:133</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The event listener proxy triggered drawing draw for special circumstances.</p>

    </div>

    

    

    
</div>

                
                    <div id="property__listeners" class="property item protected inherited">
    <h3 class="name"><code>_listeners</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="EventDispatcher.html#property__listeners">EventDispatcher</a>:
            
        
        
        <a href="../files/createjs_events_EventDispatcher.js.html#l99"><code>_listeners:99</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        
    </div>

    

    

    
</div>

                
                    <div id="property__oldProps" class="property item protected">
    <h3 class="name"><code>_oldProps</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l119"><code>_oldProps:119</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        
    </div>

    

    

    
</div>

                
                    <div id="property__oldStage" class="property item protected">
    <h3 class="name"><code>_oldStage</code></h3>
    <span class="type"><a href="Stage.html" class="crosslink">Stage</a></span>

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l126"><code>_oldStage:126</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Used to track the object which this class attached listeners to, helps optimize listener attachment.</p>

    </div>

    

    

    
</div>

                
                    <div id="property__props" class="property item protected inherited">
    <h3 class="name"><code>_props</code></h3>
    <span class="type"><a href="DisplayObject.html" class="crosslink">DisplayObject</a></span>

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property__props">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l430"><code>_props:430</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        
    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property__rectangle" class="property item protected inherited">
    <h3 class="name"><code>_rectangle</code></h3>
    <span class="type"><a href="Rectangle.html" class="crosslink">Rectangle</a></span>

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property__rectangle">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l438"><code>_rectangle:438</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        
    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property__spritePool" class="property item private">
    <h3 class="name"><code>_spritePool</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>

    

    
        <span class="flag private">private</span>
    

    

    
        <span class="flag static">static</span>
    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l155"><code>_spritePool:155</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Sprite object pool.</p>

    </div>

    

    

    
</div>

                
                    <div id="property__webGLRenderStyle" class="property item protected inherited">
    <h3 class="name"><code>_webGLRenderStyle</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property__webGLRenderStyle">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l454"><code>_webGLRenderStyle:454</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Where StageGL should look for required display properties, matters only for leaf display objects. Containers
or cached objects won&#39;t use this property, it&#39;s for native display of terminal elements.</p>

    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property_alpha" class="property item inherited">
    <h3 class="name"><code>alpha</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_alpha">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l147"><code>alpha:147</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The alpha (transparency) for this display object. 0 is fully transparent, 1 is fully opaque.</p>

    </div>

    
        <p><strong>Default:</strong> 1</p>
    

    

    
</div>

                
                    <div id="property_bitmapCache" class="property item inherited">
    <h3 class="name"><code>bitmapCache</code></h3>
    <span class="type"><a href="BitmapCache.html" class="crosslink">BitmapCache</a></span>

    

    

    

    

    
        <span class="flag readonly">readonly</span>
    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_bitmapCache">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l165"><code>bitmapCache:165</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>If a cache has been made, this returns the class that is managing the cacheCanvas and its properties. See <a href="BitmapCache.html" class="crosslink">BitmapCache</a>
for more information. Use this to control, inspect, and change the cache. In special circumstances this may be a modified or subclassed BitmapCache.</p>

    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property_cacheCanvas" class="property item inherited">
    <h3 class="name"><code>cacheCanvas</code></h3>
    <span class="type">HTMLCanvasElement | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>

    

    

    

    

    
        <span class="flag readonly">readonly</span>
    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_cacheCanvas">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l155"><code>cacheCanvas:155</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>If a cache is active, this returns the canvas that holds the image of this display object. See <a href="DisplayObject.html#method_cache" class="crosslink">cache</a>
for more information. Use this to display the result of a cache. This will be a HTMLCanvasElement unless special cache rules have been deliberately enabled for this cache.</p>

    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property_cacheID" class="property item deprecated inherited">
    <h3 class="name"><code>cacheID</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    
        <span class="flag deprecated">deprecated</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_cacheID">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l706"><code>cacheID:706</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Returns an ID number that uniquely identifies the current cache for this display object. This can be used to
determine if the cache has changed since a previous check.
Moved to <a href="BitmapCache.html" class="crosslink">BitmapCache</a></p>

    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property_compositeOperation" class="property item inherited">
    <h3 class="name"><code>compositeOperation</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_compositeOperation">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l333"><code>compositeOperation:333</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The composite operation indicates how the pixels of this display object will be composited with the elements
behind it. If <code>null</code>, this property is inherited from the parent container. For more information, read the
<a href="https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-globalcompositeoperation">
whatwg spec on compositing</a>. For a list of supported compositeOperation value, visit
<a href="https://drafts.fxtf.org/compositing/">the W3C draft on Compositing and Blending</a>.</p>

    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property_cursor" class="property item inherited">
    <h3 class="name"><code>cursor</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_cursor">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l391"><code>cursor:391</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>A CSS cursor (ex. "pointer", "help", "text", etc) that will be displayed when the user hovers over this display
object. You must enable mouseover events using the <a href="Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a> method to
use this property. Setting a non-null cursor on a Container will override the cursor set on its descendants.</p>

    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property_filters" class="property item inherited">
    <h3 class="name"><code>filters</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_filters">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l355"><code>filters:355</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>An array of Filter objects to apply to this display object. Filters are only applied / updated when Cache
or UpdateCache is called on the display object, and only apply to the area that is
cached.</p>

    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property_hitArea" class="property item inherited">
    <h3 class="name"><code>hitArea</code></h3>
    <span class="type"><a href="DisplayObject.html" class="crosslink">DisplayObject</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_hitArea">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l374"><code>hitArea:374</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>A display object that will be tested when checking mouse interactions or testing <a href="Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a>.
The hit area will have its transformation applied relative to this display object&#39;s coordinate space (as though
the hit test object were a child of this display object and relative to its regX/Y). The hitArea will be tested
using only its own <code>alpha</code> value regardless of the alpha value on the target display object, or the target&#39;s
ancestors (parents).</p>
<p>If set on a <a href="Container.html" class="crosslink">Container</a>, children of the Container will not receive mouse events.
This is similar to setting MouseChildren to false.</p>
<p>Note that hitArea is NOT currently used by the <code>hitTest()</code> method, nor is it supported for <a href="Stage.html" class="crosslink">Stage</a>.</p>

    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property_id" class="property item inherited">
    <h3 class="name"><code>id</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_id">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l175"><code>id:175</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Unique ID for this display object. Makes display objects easier for some uses.</p>

    </div>

    
        <p><strong>Default:</strong> -1</p>
    

    

    
</div>

                
                    <div id="property_letterSpacing" class="property item">
    <h3 class="name"><code>letterSpacing</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l97"><code>letterSpacing:97</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>This spacing (in pixels) will be added after each character in the output.</p>

    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property_lineHeight" class="property item">
    <h3 class="name"><code>lineHeight</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l86"><code>lineHeight:86</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The height of each line of text. If 0, then it will use a line height calculated
by checking for the height of the "1", "T", or "L" character (in that order). If
those characters are not defined, it will use the height of the first frame of the
sprite sheet.</p>

    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property_mask" class="property item inherited">
    <h3 class="name"><code>mask</code></h3>
    <span class="type"><a href="Shape.html" class="crosslink">Shape</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_mask">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l365"><code>mask:365</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>A Shape instance that defines a vector mask (clipping path) for this display object.  The shape&#39;s transformation
will be applied relative to the display object&#39;s parent coordinates (as if it were a child of the parent).</p>

    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property_maxPoolSize" class="property item">
    <h3 class="name"><code>maxPoolSize</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    
        <span class="flag static">static</span>
    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l144"><code>maxPoolSize:144</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>BitmapText uses Sprite instances to draw text. To reduce the creation and destruction of instances (and thus garbage collection), it maintains
an internal object pool of sprite instances to reuse. Increasing this value can cause more sprites to be
retained, slightly increasing memory use, but reducing instantiation.</p>

    </div>

    
        <p><strong>Default:</strong> 100</p>
    

    

    
</div>

                
                    <div id="property_mouseEnabled" class="property item inherited">
    <h3 class="name"><code>mouseEnabled</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_mouseEnabled">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l183"><code>mouseEnabled:183</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Indicates whether to include this object when running mouse interactions. Setting this to <code>false</code> for children
of a <a href="Container.html" class="crosslink">Container</a> will cause events on the Container to not fire when that child is
clicked. Setting this property to <code>false</code> does not prevent the <a href="Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a>
method from returning the child.</p>
<p><strong>Note:</strong> In EaselJS 0.7.0, the mouseEnabled property will not work properly with nested Containers. Please
check out the latest NEXT version in <a href="https://github.com/CreateJS/EaselJS/tree/master/lib">GitHub</a> for an updated version with this issue resolved. The fix will be
provided in the next release of EaselJS.</p>

    </div>

    
        <p><strong>Default:</strong> true</p>
    

    

    
</div>

                
                    <div id="property_name" class="property item inherited">
    <h3 class="name"><code>name</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_name">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l208"><code>name:208</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>An optional name for this display object. Included in <a href="DisplayObject.html#method_toString" class="crosslink">toString</a> . Useful for
debugging.</p>

    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property_parent" class="property item inherited">
    <h3 class="name"><code>parent</code></h3>
    <span class="type"><a href="Container.html" class="crosslink">Container</a></span>

    

    

    
        <span class="flag final">final</span>
    

    

    
        <span class="flag readonly">readonly</span>
    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_parent">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l217"><code>parent:217</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>A reference to the <a href="Container.html" class="crosslink">Container</a> or <a href="Stage.html" class="crosslink">Stage</a> object that
contains this display object, or null if it has not been added
to one.</p>

    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property_regX" class="property item inherited">
    <h3 class="name"><code>regX</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_regX">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l229"><code>regX:229</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The left offset for this display object&#39;s registration point. For example, to make a 100x100px Bitmap rotate
around its center, you would set regX and <a href="DisplayObject.html#property_regY" class="crosslink">regY</a> to 50.
Cached object&#39;s registration points should be set based on pre-cache conditions, not cached size.</p>

    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property_regY" class="property item inherited">
    <h3 class="name"><code>regY</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_regY">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l239"><code>regY:239</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The y offset for this display object&#39;s registration point. For example, to make a 100x100px Bitmap rotate around
its center, you would set <a href="DisplayObject.html#property_regX" class="crosslink">regX</a> and regY to 50.
Cached object&#39;s registration points should be set based on pre-cache conditions, not cached size.</p>

    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property_rotation" class="property item inherited">
    <h3 class="name"><code>rotation</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_rotation">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l249"><code>rotation:249</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The rotation in degrees for this display object.</p>

    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property_scale" class="property item inherited">
    <h3 class="name"><code>scale</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_scale">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l716"><code>scale:716</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Set both the <a href="DisplayObject.html#property_scaleX" class="crosslink">scaleX</a> and the <a href="DisplayObject.html#property_scaleY" class="crosslink">scaleY</a>
property to the same value. Note that when you get the value, if the <code>scaleX</code> and <code>scaleY</code> are different values,
it will return only the <code>scaleX</code>.</p>

    </div>

    
        <p><strong>Default:</strong> 1</p>
    

    

    
</div>

                
                    <div id="property_scaleX" class="property item inherited">
    <h3 class="name"><code>scaleX</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_scaleX">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l257"><code>scaleX:257</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The factor to stretch this display object horizontally. For example, setting scaleX to 2 will stretch the display
object to twice its nominal width. To horizontally flip an object, set the scale to a negative number.</p>

    </div>

    
        <p><strong>Default:</strong> 1</p>
    

    

    
</div>

                
                    <div id="property_scaleY" class="property item inherited">
    <h3 class="name"><code>scaleY</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_scaleY">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l266"><code>scaleY:266</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The factor to stretch this display object vertically. For example, setting scaleY to 0.5 will stretch the display
object to half its nominal height. To vertically flip an object, set the scale to a negative number.</p>

    </div>

    
        <p><strong>Default:</strong> 1</p>
    

    

    
</div>

                
                    <div id="property_shadow" class="property item inherited">
    <h3 class="name"><code>shadow</code></h3>
    <span class="type"><a href="Shadow.html" class="crosslink">Shadow</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_shadow">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l291"><code>shadow:291</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>A shadow object that defines the shadow to render on this display object. Set to <code>null</code> to remove a shadow. If
null, this property is inherited from the parent container.</p>

    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property_skewX" class="property item inherited">
    <h3 class="name"><code>skewX</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_skewX">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l275"><code>skewX:275</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The factor to skew this display object horizontally.</p>

    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property_skewY" class="property item inherited">
    <h3 class="name"><code>skewY</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_skewY">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l283"><code>skewY:283</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The factor to skew this display object vertically.</p>

    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property_snapToPixel" class="property item inherited">
    <h3 class="name"><code>snapToPixel</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_snapToPixel">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l345"><code>snapToPixel:345</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Indicates whether the display object should be drawn to a whole pixel when
<a href="Stage.html#property_snapToPixelEnabled" class="crosslink">snapToPixelEnabled</a> is true. To enable/disable snapping on whole
categories of display objects, set this value on the prototype (Ex. Text.prototype.snapToPixel = true).</p>

    </div>

    
        <p><strong>Default:</strong> true</p>
    

    

    
</div>

                
                    <div id="property_spaceWidth" class="property item">
    <h3 class="name"><code>spaceWidth</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l105"><code>spaceWidth:105</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>If a space character is not defined in the sprite sheet, then empty pixels equal to
spaceWidth will be inserted instead. If 0, then it will use a value calculated
by checking for the width of the "1", "l", "E", or "A" character (in that order). If
those characters are not defined, it will use the width of the first frame of the
sprite sheet.</p>

    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property_spriteSheet" class="property item">
    <h3 class="name"><code>spriteSheet</code></h3>
    <span class="type"><a href="SpriteSheet.html" class="crosslink">SpriteSheet</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l64"><code>spriteSheet:64</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>A SpriteSheet instance that defines the glyphs for this bitmap text. Each glyph/character
should have a single frame animation defined in the sprite sheet named the same as
corresponding character. For example, the following animation definition:</p>
<pre class="code prettyprint"><code>    "A": {frames: [0]}</code></pre>
<p>would indicate that the frame at index 0 of the spritesheet should be drawn for the "A" character. The short form
is also acceptable:</p>
<pre class="code prettyprint"><code>    "A": 0</code></pre>
<p>Note that if a character in the text is not found in the sprite sheet, it will also
try to use the alternate case (upper or lower).</p>
<p>See SpriteSheet for more information on defining sprite sheet data.</p>

    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property_stage" class="property item inherited">
    <h3 class="name"><code>stage</code></h3>
    <span class="type"><a href="Stage.html" class="crosslink">Stage</a></span>

    

    

    

    

    
        <span class="flag readonly">readonly</span>
    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_stage">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l699"><code>stage:699</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Returns the Stage instance that this display object will be rendered on, or null if it has not been added to one.</p>

    </div>

    

    

    
</div>

                
                    <div id="property_text" class="property item">
    <h3 class="name"><code>text</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/easeljs_display_BitmapText.js.html#l56"><code>text:56</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The text to display.</p>

    </div>

    
        <p><strong>Default:</strong> &quot;&quot;</p>
    

    

    
</div>

                
                    <div id="property_tickEnabled" class="property item inherited">
    <h3 class="name"><code>tickEnabled</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_tickEnabled">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l198"><code>tickEnabled:198</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>If false, the tick will not run on this display object (or its children). This can provide some performance benefits.
In addition to preventing the "tick" event from being dispatched, it will also prevent tick related updates
on some display objects (ex. Sprite &amp; MovieClip frame advancing, and DOMElement display properties).</p>

    </div>

    
        <p><strong>Default:</strong> true</p>
    

    

    
</div>

                
                    <div id="property_transformMatrix" class="property item inherited">
    <h3 class="name"><code>transformMatrix</code></h3>
    <span class="type"><a href="Matrix2D.html" class="crosslink">Matrix2D</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_transformMatrix">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l324"><code>transformMatrix:324</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>If set, defines the transformation for this display object, overriding all other transformation properties
(x, y, rotation, scale, skew).</p>

    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property_visible" class="property item inherited">
    <h3 class="name"><code>visible</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_visible">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l300"><code>visible:300</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Indicates whether this display object should be rendered to the canvas and included when running the Stage
<a href="Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a> method.</p>

    </div>

    
        <p><strong>Default:</strong> true</p>
    

    

    
</div>

                
                    <div id="property_x" class="property item inherited">
    <h3 class="name"><code>x</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_x">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l309"><code>x:309</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The x (horizontal) position of the display object, relative to its parent.</p>

    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property_y" class="property item inherited">
    <h3 class="name"><code>y</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#property_y">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l317"><code>y:317</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        
    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
            </div>
        

        

        
            <div id="events" class="api-class-tabpanel">
                <h2 class="off-left">Events</h2>

                
                    <div id="event_added" class="events item inherited">
    <h3 class="name"><code>added</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#event_added">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l651"><code>added:651</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Dispatched when the display object is added to a parent container.</p>

    </div>

    


    
</div>

                
                    <div id="event_click" class="events item inherited">
    <h3 class="name"><code>click</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#event_click">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l549"><code>click:549</code></a>
        
        </p>

        

        
            <p>Available since 0.6.0</p>
        
    </div>

    <div class="description">
        <p>Dispatched when the user presses their left mouse button and then releases it while over the display object.
See the <a href="MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>

    </div>

    


    
</div>

                
                    <div id="event_dblclick" class="events item inherited">
    <h3 class="name"><code>dblclick</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#event_dblclick">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l556"><code>dblclick:556</code></a>
        
        </p>

        

        
            <p>Available since 0.6.0</p>
        
    </div>

    <div class="description">
        <p>Dispatched when the user double clicks their left mouse button over this display object.
See the <a href="MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>

    </div>

    


    
</div>

                
                    <div id="event_mousedown" class="events item inherited">
    <h3 class="name"><code>mousedown</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#event_mousedown">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l542"><code>mousedown:542</code></a>
        
        </p>

        

        
            <p>Available since 0.6.0</p>
        
    </div>

    <div class="description">
        <p>Dispatched when the user presses their left mouse button over the display object. See the 
<a href="MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>

    </div>

    


    
</div>

                
                    <div id="event_mouseout" class="events item inherited">
    <h3 class="name"><code>mouseout</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#event_mouseout">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l571"><code>mouseout:571</code></a>
        
        </p>

        

        
            <p>Available since 0.6.0</p>
        
    </div>

    <div class="description">
        <p>Dispatched when the user&#39;s mouse leaves this display object. This event must be enabled using 
<a href="Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>. See also <a href="DisplayObject.html#event_rollout" class="crosslink">rollout</a>.
See the <a href="MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>

    </div>

    


    
</div>

                
                    <div id="event_mouseover" class="events item inherited">
    <h3 class="name"><code>mouseover</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#event_mouseover">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l563"><code>mouseover:563</code></a>
        
        </p>

        

        
            <p>Available since 0.6.0</p>
        
    </div>

    <div class="description">
        <p>Dispatched when the user&#39;s mouse enters this display object. This event must be enabled using 
<a href="Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>. See also <a href="DisplayObject.html#event_rollover" class="crosslink">rollover</a>.
See the <a href="MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>

    </div>

    


    
</div>

                
                    <div id="event_pressmove" class="events item inherited">
    <h3 class="name"><code>pressmove</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#event_pressmove">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l621"><code>pressmove:621</code></a>
        
        </p>

        

        
            <p>Available since 0.7.0</p>
        
    </div>

    <div class="description">
        <p>After a <a href="DisplayObject.html#event_mousedown" class="crosslink">mousedown</a> occurs on a display object, a pressmove
event will be generated on that object whenever the mouse moves until the mouse press is released. This can be
useful for dragging and similar operations.</p>
<p><strong>Please note</strong> that if the initial mouse target from a <code>mousedown</code> event is removed from the stage after being pressed
(e.g. during a <code>pressmove</code> event), a <code>pressmove</code> event is still generated. However since it is no longer in the
display list, the event can not bubble. This means that previous ancestors (parent containers) will not receive
the event, and therefore can not re-dispatch it. If you intend to listen for <code><a href="DisplayObject.html#event_pressup" class="crosslink">pressup</a></code>
or <code>pressmove</code> on a dynamic object (such as a <a href="MovieClip.html" class="crosslink">MovieClip</a> or <a href="Container.html" class="crosslink">Container</a>),
then ensure you set <a href="Container.html#property_mouseChildren" class="crosslink">mouseChildren</a> to <code>false</code>.</p>

    </div>

    


    
</div>

                
                    <div id="event_pressup" class="events item inherited">
    <h3 class="name"><code>pressup</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#event_pressup">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l636"><code>pressup:636</code></a>
        
        </p>

        

        
            <p>Available since 0.7.0</p>
        
    </div>

    <div class="description">
        <p>After a <a href="DisplayObject.html#event_mousedown" class="crosslink">mousedown</a> occurs on a display object, a pressup event
will be generated on that object when that mouse press is released. This can be useful for dragging and similar
operations.</p>
<p><strong>Please note</strong> that if the initial mouse target from a <code>mousedown</code> event is removed from the stage after being pressed
(e.g. during a <code>pressmove</code> event), a <code>pressup</code> event is still generated. However since it is no longer in the
display list, the event can not bubble. This means that previous ancestors (parent containers) will not receive
the event, and therefore can not re-dispatch it. If you intend to listen for <code><a href="DisplayObject.html#event_pressmove" class="crosslink">pressmove</a></code>
or <code>pressup</code> on a dynamic object (such as a <a href="MovieClip.html" class="crosslink">MovieClip</a> or <a href="Container.html" class="crosslink">Container</a>),
then ensure you set <a href="Container.html#property_mouseChildren" class="crosslink">mouseChildren</a> to <code>false</code>.</p>

    </div>

    


    
</div>

                
                    <div id="event_removed" class="events item inherited">
    <h3 class="name"><code>removed</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#event_removed">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l656"><code>removed:656</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Dispatched when the display object is removed from its parent container.</p>

    </div>

    


    
</div>

                
                    <div id="event_rollout" class="events item inherited">
    <h3 class="name"><code>rollout</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#event_rollout">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l600"><code>rollout:600</code></a>
        
        </p>

        

        
            <p>Available since 0.7.0</p>
        
    </div>

    <div class="description">
        <p>This event is similar to <a href="DisplayObject.html#event_mouseout" class="crosslink">mouseout</a>, with the following
differences: it does not bubble, and it considers <a href="Container.html" class="crosslink">Container</a> instances as an
aggregate of their content.</p>
<p>For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over
shapeA, then directly on to shapeB, then off both. With a listener for Mouseout:event
on myContainer, two events would be received, each targeting a child element:</p>
<p><ol>
        <li>when the mouse leaves shapeA (target=shapeA)</li>
        <li>when the mouse leaves shapeB (target=shapeB)</li>
</ol>
However, with a listener for "rollout" instead, only a single event is received when the mouse leaves
the aggregate myContainer content (target=myContainer).
<p>This event must be enabled using <a href="Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>.
See the <a href="MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>

    </div>

    


    
</div>

                
                    <div id="event_rollover" class="events item inherited">
    <h3 class="name"><code>rollover</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#event_rollover">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l579"><code>rollover:579</code></a>
        
        </p>

        

        
            <p>Available since 0.7.0</p>
        
    </div>

    <div class="description">
        <p>This event is similar to <a href="DisplayObject.html#event_mouseover" class="crosslink">mouseover</a>, with the following
differences: it does not bubble, and it considers <a href="Container.html" class="crosslink">Container</a> instances as an
aggregate of their content.</p>
<p>For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over
shapeA and then directly on to shapeB. With a listener for Mouseover:event on
myContainer, two events would be received, each targeting a child element:</p>
<p><ol>
        <li>when the mouse enters shapeA (target=shapeA)</li>
        <li>when the mouse enters shapeB (target=shapeB)</li>
</ol>
However, with a listener for "rollover" instead, only a single event is received when the mouse first enters
the aggregate myContainer content (target=myContainer).
<p>This event must be enabled using <a href="Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>.
See the <a href="MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>

    </div>

    


    
</div>

                
                    <div id="event_tick" class="events item inherited">
    <h3 class="name"><code>tick</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="DisplayObject.html#event_tick">DisplayObject</a>:
            
        
        
        <a href="../files/easeljs_display_DisplayObject.js.html#l661"><code>tick:661</code></a>
        
        </p>

        

        
            <p>Available since 0.6.0</p>
        
    </div>

    <div class="description">
        <p>Dispatched on each display object on a stage whenever the stage updates. This occurs immediately before the
rendering (draw) pass. When <a href="Stage.html#method_update" class="crosslink">update</a> is called, first all display objects on
the stage dispatch the tick event, then all of the display objects are drawn to stage. Children will have their
Tick:event event dispatched in order of their depth prior to the event being
dispatched on their parent.</p>

    </div>

    
        <div class="params">
            <h4>Event Payload:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">target</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The object that dispatched the event.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The event type.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">params</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
                    

                    

                    <div class="param-description">
                        <p>An array containing any arguments that were passed to the Stage.update() method. For
     example if you called stage.update("hello"), then the params would be ["hello"].</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    


    
</div>

                
            </div>
        
    </div>
</div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
